package com.example.Accounting14;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity(name = "accounting14_account") // 实体类

public class Account {
	@Id // 主键
	private String account; // 银行账户
	private Float sum; // 余额
	private String note;

	// 右键自动生成方法 source -> generate getters and setters

	public String getAccount() {
		return account;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public Float getSum() {
		return sum;
	}

	public void setSum(Float sum) {
		this.sum = sum;
	}

	// 构造方法也可以右键生成
	public Account() {
		super();
	}

	public Account(String account, Float sum) {
		super();
		this.account = account;
		this.sum = sum;
	}
}